﻿using System;

namespace EchoWx.Models
{
    /// <summary>
    /// 数据库表模型基类（大部分需要继承）
    /// </summary>
    [Serializable]
    public class BaseModel
    {
        /// <summary>
        /// 数据状态
        /// </summary>
        public int DataFlag { get; set; } = 1;
        /// <summary>
        /// 创建人ID
        /// </summary>
        public long CreateUID { get; set; } = 1;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改人ID
        /// </summary>
        public long UpdateUID { get; set; } = 1;
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDel { get; set; } = 0;
    }
}
